package com.china.svc.comprehensivetest.brushGather.protocol;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * Created by Smh on 2018/4/8.
 */

public interface IHttpService {

    String HOST_IP = "192.168.0.45";//localhost
    String HOST_URL = "http:" + HOST_IP + ":8080/TakeoutService/";

    // 用来区分请求的是哪一个接口
    int HTTP_HOME = 0;
    int HTTP_SHOP_LIST = 1;

//    @GET("home")
//        // Call<Home> getHome();
//        // 修改类型为gson库中的JsonObject, 目的： 为了手动解析json
//    Call<JsonObject> getHome();
//
//    @POST("shopList")
//    @FormUrlEncoded
//    Call<JsonObject> getShopList(@FieldMap Map<String, Object> map);

}
